﻿using System;
using System.Configuration;
using ServiceStack.ServiceHost;

namespace PuSuoPai
{
	[Route("/Version", "POST")]
	public class CheckVersionRqt : IReturn<ConfirmRsp>
	{
		public string Version { get; set; }
	}

	[Route("/Login", "POST")]
	public class LoginRqt : IReturn<Player>
	{
		public string Name { get; set; }
		public string Passward { get; set; }
	}

	[Route("/Create", "POST")]
	public class CreaeteRqt : IReturn<ConfirmRsp>
	{
		public string Name { get; set; }
		public string Passward { get; set; }
	}

	[Route("/Exchange", "POST")]
	public class ExchangeRqt : IReturn<ExchangeRsp>
	{
		public string PlayerId { get; set; }
		public int Num { get; set; }
		public int Points { get; set; }
	}

	[Route("/GetPoint", "POST")]
	public class GetPointRqt : IReturn<PlayerPoint>
	{
		public string PlayerId { get; set; }
		public int BuyPoints { get; set; }
	}

	[Route("/payali", "POST")]
	public class AlipayRqt
	{
		public string notify_time { get; set; }
		public string notify_type { get; set; }
		public string notify_id { get; set; }
		public string sign_type { get; set; }
		public string sign { get; set; }

		public string out_trade_no { get; set; }
		public string subject { get; set; }
		public string payment_type  { get; set; }
		public string trade_no { get; set; }
		public string trade_status { get; set; }
		public string seller_id { get; set; }
		public string seller_email { get; set; }
		public string buyer_id { get; set; }
		public string buyer_email  { get; set; }
		public string total_fee { get; set; }
		public string quantity { get; set; }
		public string Price { get; set; }
		public string body { get; set; }
		public string gmt_create { get; set; }
		public string gmt_payment { get; set; }
		public string is_total_fee_adjust { get; set; }
		public string use_coupon  { get; set; }
		public string discount { get; set; }
		public string refund_status  { get; set; }
		public string gmt_refund { get; set; }
	}

	[Route("/CheckMathCode", "POST")]
	public class CheckMathCode : IReturn<CheckMatchCodeRsp>
	{
		public string PlayerId { get; set; }
		public string GameType { get; set; }
		public string Code { get; set; }
	}

	[Route("/SponsorGuildEvent", "POST")]
	public class SponsorGuildEvent : IReturn<GuildData.GuildEventInfo>
	{
		public string PlayerId { get; set; }
		public UInt32 GuildEvent { get; set; }
		public string TargetGuildName { get; set; }
	}

	[Route("/AcceptGuildRoom", "POST")]
	public class AcceptGuildRoom : IReturn<GuildRoomData>
	{
		public string PlayerId { get; set; }
		public string GuildEventId { get; set; }
	}

	[Route("/GetGuildList", "POST")]
	public class GetGuildList : IReturn<GetGuildListRsp>
	{

	}

	[Route("/CreateGuild", "POST")]
	public class CreateGuild : IReturn<GuildData>
	{
		public string PlayerId { get; set; }
		public string GuildName { get; set; }
	}

	[Route("/JoinGuild", "POST")]
	public class JoinGuild : IReturn<GuildData>
	{
		public string PlayerId { get; set; }
		public string GuildName { get; set; }
	}

	[Route("/QuitGuild", "POST")]
	public class QuitGuild : IReturn<Player>
	{
		public string PlayerId { get; set; }
	}

	[Route("/GetGuild", "POST")]
	public class GetGuild : IReturn<GuildData>
	{
		public string GuildName { get; set; }
	}

	//================= Jing Wu =====================
	[Route("/JingWu/DianZan", "POST")]
	public class JingWu_DianZan : IReturn<ConfirmRsp>
	{
		public string ContextIndices { get; set; }
	}

	[Route("/JingWu/AddPoints", "POST")]
	public class JingWu_AddPoints : IReturn<PlayerPoint>
	{
		public string PlayerId { get; set; }
		public int Points { get; set; }
	}

	//===============================================
}

